Repository navigation
Report the time to first token of the spring-ai-1.x plugin in gen_ai.response.time_to_first_chunk - #851
Open
peachisai wants to merge 2 commits into
Open
Report the time to first token of the spring-ai-1.x plugin in gen_ai.response.time_to_first_chunk#851peachisai wants to merge 2 commits into
peachisai wants to merge 2 commits into
Conversation
…response.time_to_first_chunk The OpenTelemetry GenAI semantic conventions define gen_ai.response.time_to_first_chunk, in seconds, as the span attribute for it. gen_ai.server.time_to_first_token, which the plugin used with a value in milliseconds, is the name of a metric there. Tags.GEN_AI_SERVER_TIME_TO_FIRST_TOKEN is renamed to Tags.GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK.
wu-sheng
approved these changes
Nov 26, 2026
Member
|
Please submit your pull request for OAP side |
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Report the time to first token of the spring-ai-1.x plugin in
gen_ai.response.time_to_first_chunkThe OpenTelemetry GenAI semantic conventions define
gen_ai.response.time_to_first_chunk, in seconds, as the span attribute for the time to the first chunk of a streaming response.gen_ai.server.time_to_first_token, which the plugin reported with a value in milliseconds, is the name of a metric there, not of a span attribute.spring-ai-1.xplugin now reportsgen_ai.response.time_to_first_chunkin seconds, such as0.457.Tags.GEN_AI_SERVER_TIME_TO_FIRST_TOKENis renamed toTags.GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK.spring-ai-1.x-scenarioplugin test follows the new tag.The OAP side that reads the new tag is a separate pull request to apache/skywalking. It follows once this one is merged, because its e2e test runs the agent image built from this repository. An OAP that reads only the previous tag shows no time to first token for the calls this agent traces.
CHANGESlog.